<?php
echo $this->form;
//show messages
if($this->messages){
    foreach($this->messages as $msg){
        $msg = explode('|',$msg);
        echo "<div class=\"notification {$msg[0]} \">",$msg[1],'</div>';
    }
}